package us.icitap.timsportal.web.custom;

import us.icitap.timsportal.util.Constants;

import com.vaadin.ui.DateField;

public class PortalDateField extends DateField {

	/**
	 * 
	 */
	private static final long serialVersionUID = 801976870877021904L;
	
	public PortalDateField(){
		super();
		this.setLocale(Constants.LOCALE_ALBANIAN);
		this.setCaption("Data dhe ora");
		this.setResolution(RESOLUTION_MIN);
		this.setDateFormat("H:mm dd-MM-yyyy");
		this.setWidth("15em");
		this.setStyleName("timsportal");
	}
	
	public PortalDateField(String caption){
		this();
		this.setCaption(caption);
	}
	
	public PortalDateField(String caption, int resolution){
		this(caption);
		this.setResolution(resolution);
		this.setStyleName("timsportal");
	}

}
